package cn.wolfcode.luowowo.article.mapper;

import cn.wolfcode.luowowo.article.domain.StrategyCommend;
import cn.wolfcode.luowowo.common.query.QueryObject;

import java.util.List;

public interface StrategyCommendMapper {
    /**
     * 查询全部推荐攻略
     * @param qo
     * @return
     */
    List<StrategyCommend> selectForList(QueryObject qo);

    /**
     * 保存推荐攻略
     * @param entity
     */
    void insert(StrategyCommend entity);

    /**
     * 查询排序前五的推荐攻略
     * @return
     */
    List<StrategyCommend> selectTop5();
}
